﻿using System;
using System.Collections.Generic;
using BusinessObjects.Entities;
using Data.DataAccessObjects.Base;

namespace Data.DataAccessObjects
{
    public class AddressDao : DaoBase<AddressEntity, Guid>, IAddressDao
    {
        public IList<AddressEntity> GetByCity(string city)
        {
            return GetBy(city, "City");
        }

        public IList<AddressEntity> GetByState(string state)
        {
            return GetBy(state, "State");
        }

        public IList<AddressEntity> GetByZip(string zip)
        {
            return GetBy(zip, "Zip");
        }
    }
}